#include "common.h"

#include <iostream>

static int gvalue = 1234;

void PrintValue(void)
{
    std::cout << "gvalue = " << gvalue << ", &gvalue = " << &gvalue << std::endl;
}


Singleton::Singleton()
{
    std::cout << "Static Singleton created" << std::endl;
}

Singleton& Singleton::getInstance()
{
    static Singleton instance;
    return instance;
}

void Singleton::doSomething(void)
{
    std::cout<< "Static Singleton doing something, this = " << this << std::endl;
}
